/*
 * @Author: wuqiang
 * @Date: 2021-03-11 13:43:21
 * @LastEditors: wuqiang
 * @LastEditTime: 2023-11-17 13:46:34
 */
import { lazy } from 'react'
const RedCard = lazy(() => import('@/pages/huijun/redCard')) // 红卡办理
const RedCardConfirm = lazy(() => import('@/pages/huijun/redCardConfirm')) // 红卡确认
const RedCardRenewal = lazy(() => import('@/pages/huijun/redCardRenewal')) // 红卡续保
const InsureSuccess = lazy(() => import('@/pages/huijun/insureSuccess')) // 投保成功
const RenewEntry = lazy(() => import('@/pages/huijun/renewEntry')) // 投保成功
const Viewer = lazy(() => import('@/pages/huijun/viewer')) // pdf预览
const Choosy = lazy(() => import('@/pages/huijun/choosy')) // 精选集粹
const SharePage = lazy(() => import('@/pages/huijun/sharePage')) // pdf预览


export interface RouteConfig {
  path: string
  component?: any
  exact?: boolean
}

export const huijunRoutes: RouteConfig[] = [
  {
    path: '/',
    component: RedCard,
    exact: true
  },
  {
    path: '/redCard',
    component: RedCard,
    exact: true
  },
  {
    path: '/redCardConfirm',
    component: RedCardConfirm,
    exact: true
  },
  {
    path: '/redCardRenewal',
    component: RedCardRenewal,
    exact: true
  },
  {
    path: '/insureSuccess',
    component: InsureSuccess
  },
  {
    path: '/viewer',
    component: Viewer
  },
  {
    path: '/renewEntry',
    component: RenewEntry
  },
  {
    path: '/choosy',
    component: Choosy
  },
  {
    path: '/sharePage',
    component: SharePage
  },
  {
    path: '**',
    component: RedCard
  }
]
